package com.team11.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team11.server.pojo.AInformation;
import com.team11.server.pojo.dto.ProjectAttendance;
import com.team11.server.pojo.dto.vo.ProjectAttendanceVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author
 * @since
 */
public interface AInformationMapper extends BaseMapper<AInformation> {

    /**
     * 获取项目考勤记录表
     * @param page
     * @param projectAttendanceVo
     */
    IPage<ProjectAttendance> getProjectAttendance(IPage<ProjectAttendance> page,
                                                  @Param("projectAttendanceVo") ProjectAttendanceVo projectAttendanceVo);


    IPage<ProjectAttendance> getStudentAttendance(IPage<ProjectAttendance> page,
                                                  @Param("sNumber") String sNumber, @Param("kcName") String kcName,
                                                  @Param("aState") String aState,
                                                  @Param("startTime") LocalDate startTime,@Param("endTime") LocalDate endTime);


    void updateStudentAttendance(@Param("aState") Integer aState, @Param("aId") Integer aId);
}
